package com.sh.personnel.vo.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * 部门树
 * @author 林思浩
 * @date 2020/03/16 19:06
 */
@Data
@Accessors(chain = true)
public class SelectTreeDto {

    private String label; // 部门名称·菜单名称
    private Integer value; //部门ID·菜单ID

    private Integer parentId; //部门父级ID·菜单父级ID

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<SelectTreeDto> children = new ArrayList<>();

}
